<template>
	<view class="homecon">
		<u-navbar title="" :leftIconSize="24" bgColor="#f2f1f6" rightIcon="question-circle" :autoBack="true"
			:placeholder="true" safeAreaInsetTop>
			<view class="u-nav-slot" slot="right">
				<u-icon name="question-circle" color="#000" size="24"></u-icon>
			</view>
		</u-navbar>
		<!-- 图表 -->
		<view class="my_uch">
			<view class="my_tit my_tbyg-a">
				<view class="my_tit_y" style="background-color: #9dabb4;">

				</view>
				<image class="img" src="@/static/zhamk.png" mode=""></image>
				<view class="my_tit_z">
					自动化闸门
				</view>
			</view>
			<view class="my_tit my_tbyg-a" @click="hoistbox">
				<view class="my_tit_y" style="background-color: #189ecb;">

				</view>
				<image class="img" src="@/static/qibj.png" mode=""></image>
				<view class="my_tit_z">
					手摇电驱动
				</view>
			</view>
			<view class="my_tit my_tbyg-a">
				<view class="my_tit_y" style="background-color: #ffaa00;">

				</view>
				<image class="img" src="@/static/jihua2.png" mode=""></image>
				<view class="my_tit_z">
					一体式闸门
				</view>
			</view>
			<!-- 			<view class="my_tit my_tbyg-b" @click="hoistDistance">
				<view class="my_tit_y" style="background-color: #5097ed;">

				</view>
				<image class="img" src="@/static/asdf.png" mode=""></image>
				<view class="my_tit_z">
					按升降高度
				</view>
			</view> -->
			<!-- 			<view class="my_tit my_tbyg-c" @click="hoistPosition">
				<view class="my_tit_y" style="background-color: #edc850;">

				</view>
				<image class="img" src="@/static/asdj.png" mode=""></image>
				<view class="my_tit_z">
					按闸门开度
				</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				autoplay: true,
				background: ['color1', 'color2', 'color3'],
				indicatorDots: true,
				autoplay: true,
				interval: 3000,
				duration: 500,
			}
		},
		onLoad(option) {

		},
		onShow() {

		},
		methods: {
			hoistbox() {
				uni.navigateTo({
					url: '/pages/waterSupplyManagement/index'
				});
			},
		}
	}
</script>
<style scoped lang="scss">
	.tophead {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 80rpx 20rpx 10rpx 20rpx;
		color: #000000;
		background-color: #f3f3f3;
	}

	.homecon {
		.my_uch {

			.my_tit {
				margin: 20rpx;
				padding: 20rpx;
				border-radius: 20rpx;
				background-color: #ffffff;
				display: flex;
				align-items: center;
				justify-content: center;
				color: #000000;

				.my_tit_y {
					width: 30rpx;
					height: 50rpx;
					border-radius: 50rpx;
					margin-right: 30rpx;
					background-color: #f2f1f6;
				}

				.img {
					width: 100rpx;
					height: 100rpx;
				}

				.my_tit_z {
					width: 600rpx;
					font-size: 50rpx;
					text-align: center;
				}
			}

			.my_tbyg-a {
				background-color: rgba(24, 158, 203, 0.1);
				border: #189ecb solid 1rpx;
			}

			.my_tbyg-b {
				background-color: rgba(80, 151, 237, 0.1);
				border: rgba(80, 151, 237, 0.3) solid 1rpx;
			}

			.my_tbyg-c {
				background-color: rgba(237, 200, 80, 0.1);
				border: rgba(237, 200, 80, 0.3) solid 1rpx
			}

			.my_tit:active {
				background-color: rgba(170, 255, 255, 0.1);
			}
		}
	}

	.u-nav-slot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 5rpx 10rpx;
	}
</style>

<style>
	page {
		background-color: #f2f1f6;
	}
</style>